<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<canvas id="myCanvas">您的浏览器不支持 HTML5 canvas 标签。</canvas>
	</body>
	<script type="text/javascript">
		var canvas = document.getElementById("myCanvas");
		//if (!canvas.getContext) return false;
		canvas.width = 292;
   		canvas.height = 647;
		var tx=canvas.getContext("2d") 
		//创建图片
		var img = new Image();   // 创建一个<img>元素
		img.onload = function(){
		    tx.drawImage(img, 0, 0)//绘制图片
		}
		img.src = './img/红.png';  


	</script>
</html>